package pack1;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class sprg8 {
public static void main(String[] args) {
	WebDriver driver = new FirefoxDriver();
	driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
	driver.get("file:///C:/Users/anand/Desktop/tst.html");
	driver.findElement(By.name("txt")).sendKeys("hello");
	String s=driver.findElement(By.name("txt")).getText();
	System.out.println("hi  "+s);
	
	
}
}
